package com.frame.common;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import com.opensymphony.xwork2.ActionSupport;


/**
 * <b>项目名称：</b>wap_plat<br>
 * <b>创建人：</b>wulw<br>
 * <b>创建时间：</b>2015-3-11-上午10:28:21<br>
 * <b>@Copyright:</b>2015-新东网科技
 */
public class N_BaseAction extends ActionSupport{

	private static final long serialVersionUID = -3952174745237441787L;

	@Resource(name="wapAppService")
	protected ICommonService appCommonService;
	
	@Autowired
	@Qualifier("wapWebService")
	protected ICommonService webCommonService;
	
	public HttpServletResponse getResponse() {
		return ServletActionContext.getResponse();
	}

	public HttpServletRequest getRequest() {
		return ServletActionContext.getRequest();
	}
	
	public HttpSession getSession() {
		return getRequest().getSession();
	}
}